from twisted.application import internet,service

from twisted.web import resource,server,static

resource = static.File("e:") 

application = service.Application("dir_list")
serv=internet.TCPServer(8080,server.Site(resource))
serv.setServiceParent(application)
#service.IService(application).startService()
#from twisted.internet import reactor
#reactor.run()

